package com.example.mybatis.springbootdemo.demo;

import com.example.mybatis.springbootdemo.dao.entity.pojo.User;
import com.example.mybatis.springbootdemo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * create by sym  2020/8/24 20:44.
 */
@Service
@Slf4j
public class ServiceIpml  implements IService{

    @Autowired
    UserService userService;


    @Override
    public void get() {
        User user = userService.getUser(2L);
        log.info("ServiceIpml.PostConstruct {}",user);
    }
}
